.rangeSlider {
  position: relative;
  width: 100%;
  height: var(--space-16);
}

.disabled,
.disabled * {
  cursor: not-allowed;
}

.input {
  position: relative;
  z-index: var(
    --z-index-1
  ); /* stack `.input` over all other elements within `.checkbox` */
  display: block;
  width: 100%;
  height: var(--space-16);
  border-radius: var(--space-8);
  -webkit-appearance: none;
  appearance: none;
  background: none;
  --create-figma-plugin-range-slider-progress-track-color: var(
    --figma-color-bg-brand
  );
}
.disabled .input {
  --create-figma-plugin-range-slider-progress-track-color: var(
    --figma-color-bg-disabled
  );
}

.input::-webkit-slider-thumb {
  display: block;
  width: var(--space-16);
  height: var(--space-16);
  border: var(--border-width-4) solid var(--figma-color-icon-onbrand);
  border-radius: var(--space-8);
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--figma-color-bg-brand);
  box-shadow: var(--box-shadow-range-slider);
}
.input:focus-visible::-webkit-slider-thumb {
  outline: var(--border-width-1) solid var(--figma-color-border-selected);
}

.disabled .input::-webkit-slider-thumb {
  border: none;
  background-color: var(--figma-color-bg);
}

.box {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--space-16);
  border: var(--border-width-1) solid var(--figma-color-border);
  border-radius: var(--space-8);
  background-color: var(--figma-color-bg-secondary);
}
